Python regex return binary value based on compiled pattern

welcome to shbcf.ru